package com.yy.wga.mp.common.config;

import com.yy.wga.mp.common.interceptor.RequestUserInterceptor;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @作 者: 侯建军
 * @日 期: 2018/11/20 16:39:19
 * @描 述:  web配置
 */
@Configuration
@RequiredArgsConstructor
public class MpWebConfig implements WebMvcConfigurer {
    private final RequestUserInterceptor requestUserInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(requestUserInterceptor);
    }
}
